package com.sxs.service;

import com.alibaba.dubbo.config.annotation.Reference;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sxs.entity.UserDO;
import org.springframework.stereotype.Service;

/**
 * @author songXuSheng
 * @Date: 2021/9/8 13:56
 * 注册中心的方法
 */
@Service
public class CallUserService {
    @Reference
    private UserService userService;

    public UserDO findById(String id) {
        return userService.findById(id);
    }

    public Integer addUserDO(UserDO user) {
        return userService.addUserDO(user);
    }

    public Page<UserDO> listUser(Long current, Long limit) {
        return userService.listUser(current, limit);
    }

    public Integer delete(String id) {
        return userService.delete(id);
    }

    public Integer update(UserDO user) {
        return userService.update(user);
    }
}
